NBS
This is a library that lets you play music with the NBS (Note Block Studio) format.
Functions
loadNBS
sm.scrapcomputers.nbs.loadNBS( nbsData )
Loads a NBS file.
Arguments:
- nbsData [ string ] The raw NBS data.
Returns:
- [ NBSPlayer ] The nbs player (Pass this into sc.nbs.createPlayer)
createPlayer
sm.scrapcomputers.nbs.createPlayer( nbsData, speaker )
Creates a new player for the NBS
Arguments:
- nbsData [ table ] The NBS data.
- speaker [ Speaker ] The speaker to play it to
Returns:
- [ NBSPlayer ] The nbs player